const http = uni.$u.http;

// 获取验证码
export function getCodeApi(phone) {
	return http.post('/tbMemberBase/getCode', { phone })
}

// 登陆
export function loginApi(data) {
	return http.post('/tbMemberBase/memberLogin', data)
}

// 
export function getUserInfo() {
	return http.post('/tbMemberBase/getMemberInfo',)
}

// 
export function getAreaList() {
	return http.post('/Authority/provinceAndCity')
}

// 论坛类型枚举
export function getDictMapApi(code) {
	return http.post('/tbWords/getChildCode', { tw_code: code })
}

// 报名操作
export function signUpMettingApi(data) {
	return http.post('/tbMeetingInfo/sinUpMeeting', data)
}

// 修改用户信息
export function updateUserInfoApi(data) {
	return http.post('/tbMemberBase/memberEdit', data)
}


// 文件上传
export function uploadFile(url) {
	return http.upload(`/addFile/fileUploadEx`, {
    filePath: url,
    name: 'myfiles',
  })
}

